﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"CodeFile="News.aspx.cs"Inherits="News" %>


<%@ Register Src="UserControls/Left_Trends.ascx" TagName="Left_Trends" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <title>信管系简介-河北大学管理学院信息管理系</title>
    <link href="CSS/pagebody.css" rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <!-- left start-->
    <div id="left">
        <uc1:Left_Trends ID="Left_Trends1" runat="server" />
    </div>
    <!-- left end -->
    <!--  right start -->
    <div id="right">
        <div class="right-top">
            <div style="font-size: 14px; padding-top: 8px; padding-left: 18px">
                您的当前位置：<a href="Default.aspx">首页</a> > <a href="News.aspx?ID=">新闻速递</a> >
                <asp:Label ID="lblTitleTop" runat="server"></asp:Label></div>
        </div>
        <div class="right-center">
            <ul>
                <asp:ListView ID="newsList" runat="server">
                    <ItemTemplate>
                        <li><a href='News.aspx?Cat=<%# Eval("newsType")%>'>
                            【<%#Eval("newsType") %>】</a><a
                                href='NewsDetails.aspx?Id=<%#Eval("newsID")%>'><%#  Eval("newsTitle").ToString().Length<16?(Eval("newsTitle").ToString()):(Eval("newsTitle").ToString().Substring(0,16)+"...")%></a><div style="float:right"> <%#Eval("newsTop").ToString() == "True" ? "↑" : ""%><%#Eval("newsHot").ToString() == "True" ? "" : "hot"%><%# Convert.ToDateTime(Eval("newsTime")).ToShortDateString() %></div></li>
                    </ItemTemplate>
                </asp:ListView>
            </ul>
            <br />
            <asp:DataPager ID="newsPager" runat="server" PagedControlID="newsList" 
                PageSize="10">
                <Fields>
                    <asp:NextPreviousPagerField ShowFirstPageButton="True" 
                        ShowNextPageButton="False" FirstPageText="&lt;&lt;" PreviousPageText="&lt;" />
                    <asp:NumericPagerField />
                    <asp:NextPreviousPagerField ShowLastPageButton="True"
                        ShowPreviousPageButton="False" LastPageText="&gt;&gt;" 
                        NextPageText="&gt;" />
                </Fields>
            </asp:DataPager>
          
        </div>
    </div>
    <!--  right end -->
</asp:Content>
